package cn.pn.project.client.base.fallback;

import cn.pn.project.client.base.AddressFeign;
import cn.pn.project.module.base.AddressModule;
import cn.pn.project.pojo.base.Address;
import cn.pn.project.vo.base.AddressVo;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

import java.sql.SQLException;
import java.util.List;


@Component
@RequestMapping("/address/api")
public class AddressFeignFallBack implements AddressFeign {
    @Override
    public boolean addAddress(Address address) throws RuntimeException {
        return false;
    }

    @Override
    public boolean changeAddress(Address address) throws RuntimeException {
        return false;
    }

    @Override
    public boolean removeAddress(Address address) throws RuntimeException {
        return false;
    }

    @Override
    public List<AddressModule> findAddressByUserId(Address address) throws RuntimeException {
        return null;
    }

    @Override
    public void defaultAddressReplace(AddressVo addressVo) throws RuntimeException, SQLException {

    }
}
